<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            </a>
            <a class="brand" href="{{url_for('bpRoot.view')}}"><strong></strong></a>
            <div class="nav-collapse collapse">
                <ul class="nav">
                
                    <li{{(' class="active"' if getActiveTab()==TAB_HOME else '')|safe}}><a href="{{url_for('bpRoot.view')}}">{{ getShopPro().shop }}</a></li>
                    <li{{(' class="active"' if getActiveTab()==TAB_BASIC else '')|safe}}><a href="{{url_for('bpMas.view')}}">基础信息</a></li>
                    <li{{(' class="active"' if getActiveTab()==TAB_REPORT else '')|safe}}><a href="{{url_for('bpRpt.view')}}">报表</a></li>
                    {% if getAnyPermission(['USER_VIEW','GROUP_VIEW'])%}
                    <li{{(' class="active"' if getActiveTab()==TAB_SETTING else '')|safe}}><a href="{{url_for('bpSys.view')}}">系统设置</a></li>
                    {% endif %}
                    
                    {% if getAllPermission(['SHOP_VIEW_ALL',]) %}
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" onclick="showShopList()">更多店铺 <b class="caret"></b></a>
                            <ul class="dropdown-menu" id="shoplist">
                                
                            </ul>
                        </li>
                    {% endif %}
                </ul>
                <div class="btn-group pull-right">
                    <a class="btn btn-primary" href="#"><i class="icon-user icon-white"></i>&nbsp;{{session['user_profile']['name']}}</a>
                    <a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="{{url_for('bpAuth.changePro')}}"><i class="icon-pencil"></i>&nbsp;我的信息</a></li>
                        <li><a href="{{url_for('bpAuth.changePW')}}"><i class="icon-lock"></i>&nbsp;修改密码</a></li>
                        <li class="divider"></li>
                        <li><a href="{{url_for('bpAuth.logout')}}"><i class="icon-off"></i>&nbsp;退出</a></li>
                    </ul>
                </div>
            </div>
            <!--/.nav-collapse -->
        </div>
    </div>
</div>